﻿package  {
	
	import flash.display.MovieClip;
	import flash.text.TextFormat;
	import flash.filters.GlowFilter;
	
	
	public class AttachmentTextUp extends MovieClip {
		
		public static const WHITE:String="white";
		public static const GREEN:String="green";
		public static const YELLOW:String="yellow";
		
		public function AttachmentTextUp(str:String,type:String) {
			var format:TextFormat=new TextFormat();
			switch(type)
			{
				case WHITE:
					format.color=0xffffff;
					break;
				case GREEN:
					format.color=0x8ecb4a;
					break;
				case YELLOW:
					format.color=0xf3df39;
					break;
			}
			this.textContainer.numText.defaultTextFormat=format;
			this.textContainer.numText.text=str;
			var filter:GlowFilter=new GlowFilter(0x666666,0.8,2,2,16,2);
			this.textContainer.numText.filters=[filter];
		}
	}
	
}
